Optimal. Leaf size=74 \[ \frac{\sin (e+f x)}{2 f (a+b) \left (-a \sin ^2(e+f x)+a+b\right )}+\frac{\tanh ^{-1}\left (\frac{\sqrt{a} \sin (e+f x)}{\sqrt{a+b}}\right )}{2 \sqrt{a} f (a+b)^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0703302, antiderivative size = 74, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.13, Rules used = {4147, 199, 208} \[ \frac{\sin (e+f x)}{2 f (a+b) \left (-a \sin ^2(e+f x)+a+b\right )}+\frac{\tanh ^{-1}\left (\frac{\sqrt{a} \sin (e+f x)}{\sqrt{a+b}}\right )}{2 \sqrt{a} f (a+b)^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4147
Rule 199
Rule 208
Rubi steps
\begin{align*} \int \frac{\sec ^3(e+f x)}{\left (a+b \sec ^2(e+f x)\right )^2} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{1}{\left (a+b-a x^2\right )^2} \, dx,x,\sin (e+f x)\right )}{f}\\ &=\frac{\sin (e+f x)}{2 (a+b) f \left (a+b-a \sin ^2(e+f x)\right )}+\frac{\operatorname{Subst}\left (\int \frac{1}{a+b-a x^2} \, dx,x,\sin (e+f x)\right )}{2 (a+b) f}\\ &=\frac{\tanh ^{-1}\left (\frac{\sqrt{a} \sin (e+f x)}{\sqrt{a+b}}\right )}{2 \sqrt{a} (a+b)^{3/2} f}+\frac{\sin (e+f x)}{2 (a+b) f \left (a+b-a \sin ^2(e+f x)\right )}\\ \end{align*}
Mathematica [A] time = 0.304015, size = 88, normalized size = 1.19 \[ \frac{\sqrt{a} \sqrt{a+b} \sin (e+f x)+\left (-a \sin ^2(e+f x)+a+b\right ) \tanh ^{-1}\left (\frac{\sqrt{a} \sin (e+f x)}{\sqrt{a+b}}\right )}{\sqrt{a} f (a+b)^{3/2} (a \cos (2 (e+f x))+a+2 b)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.068, size = 68, normalized size = 0.9 \begin{align*}{\frac{1}{f} \left ( -{\frac{\sin \left ( fx+e \right ) }{ \left ( 2\,a+2\,b \right ) \left ( -a-b+a \left ( \sin \left ( fx+e \right ) \right ) ^{2} \right ) }}+{\frac{1}{2\,a+2\,b}{\it Artanh} \left ({\sin \left ( fx+e \right ) a{\frac{1}{\sqrt{ \left ( a+b \right ) a}}}} \right ){\frac{1}{\sqrt{ \left ( a+b \right ) a}}}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.546575, size = 601, normalized size = 8.12 \begin{align*} \left [\frac{{\left (a \cos \left (f x + e\right )^{2} + b\right )} \sqrt{a^{2} + a b} \log \left (-\frac{a \cos \left (f x + e\right )^{2} - 2 \, \sqrt{a^{2} + a b} \sin \left (f x + e\right ) - 2 \, a - b}{a \cos \left (f x + e\right )^{2} + b}\right ) + 2 \,{\left (a^{2} + a b\right )} \sin \left (f x + e\right )}{4 \,{\left ({\left (a^{4} + 2 \, a^{3} b + a^{2} b^{2}\right )} f \cos \left (f x + e\right )^{2} +{\left (a^{3} b + 2 \, a^{2} b^{2} + a b^{3}\right )} f\right )}}, -\frac{{\left (a \cos \left (f x + e\right )^{2} + b\right )} \sqrt{-a^{2} - a b} \arctan \left (\frac{\sqrt{-a^{2} - a b} \sin \left (f x + e\right )}{a + b}\right ) -{\left (a^{2} + a b\right )} \sin \left (f x + e\right )}{2 \,{\left ({\left (a^{4} + 2 \, a^{3} b + a^{2} b^{2}\right )} f \cos \left (f x + e\right )^{2} +{\left (a^{3} b + 2 \, a^{2} b^{2} + a b^{3}\right )} f\right )}}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sec ^{3}{\left (e + f x \right )}}{\left (a + b \sec ^{2}{\left (e + f x \right )}\right )^{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.33044, size = 107, normalized size = 1.45 \begin{align*} -\frac{\frac{\arctan \left (\frac{a \sin \left (f x + e\right )}{\sqrt{-a^{2} - a b}}\right )}{\sqrt{-a^{2} - a b}{\left (a + b\right )}} + \frac{\sin \left (f x + e\right )}{{\left (a \sin \left (f x + e\right )^{2} - a - b\right )}{\left (a + b\right )}}}{2 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]